/*
 * Copyright 2010-2024 JetBrains s.r.o. and Kotlin Programming Language contributors.
 * Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
 */

package org.jetbrains.kotlin.compiler.plugins;

import com.intellij.testFramework.TestDataPath;
import org.jetbrains.kotlin.test.JUnit3RunnerWithInners;
import org.jetbrains.kotlin.test.KotlinTestUtils;
import org.jetbrains.kotlin.test.util.KtTestUtil;
import org.jetbrains.kotlin.test.TestMetadata;
import org.junit.runner.RunWith;

import java.io.File;
import java.util.regex.Pattern;

/** This class is generated by {@link org.jetbrains.kotlin.compiler.plugins.TestGeneratorKt}. DO NOT MODIFY MANUALLY */
@SuppressWarnings("all")
@TestMetadata("plugins/plugins-interactions-testing/testData/cli")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public class PluginCliTestsGenerated extends AbstractPluginCliTests {
  private void runTest(String testDataFilePath) {
    KotlinTestUtils.runTest(this::doJvmTest, this, testDataFilePath);
  }

  public void testAllFilesPresentInCli() {
    KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("plugins/plugins-interactions-testing/testData/cli"), Pattern.compile("^(.+)\\.args$"), null, false);
  }

  @TestMetadata("pluginsLegacyOrdered.args")
  public void testPluginsLegacyOrdered() {
    runTest("plugins/plugins-interactions-testing/testData/cli/pluginsLegacyOrdered.args");
  }

  @TestMetadata("pluginsLegacyReversed.args")
  public void testPluginsLegacyReversed() {
    runTest("plugins/plugins-interactions-testing/testData/cli/pluginsLegacyReversed.args");
  }

  @TestMetadata("pluginsLegacySorted.args")
  public void testPluginsLegacySorted() {
    runTest("plugins/plugins-interactions-testing/testData/cli/pluginsLegacySorted.args");
  }

  @TestMetadata("pluginsOrdered.args")
  public void testPluginsOrdered() {
    runTest("plugins/plugins-interactions-testing/testData/cli/pluginsOrdered.args");
  }

  @TestMetadata("pluginsReversed.args")
  public void testPluginsReversed() {
    runTest("plugins/plugins-interactions-testing/testData/cli/pluginsReversed.args");
  }

  @TestMetadata("pluginsSorted.args")
  public void testPluginsSorted() {
    runTest("plugins/plugins-interactions-testing/testData/cli/pluginsSorted.args");
  }
}
